package com.jic.market.response.rest.groupon;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author wj
 * @version V1.0
 * @description 开团未成团列表
 * @date 2020/4/14
 */

@ApiModel(description = "前端-开团未成团列表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CurrentJoinedGroupResponse implements Serializable {

    private static final long serialVersionUID = -8351357347201236275L;

    @ApiModelProperty(notes = "开团时间")
    private Date launchTime;

    @ApiModelProperty(notes = "用户id")
    private Long memberId;

    @ApiModelProperty(notes = "团长名称")
    private String memberName;

    @ApiModelProperty(notes = "头像")
    private String memberHead;

    @ApiModelProperty(notes = "拼团实例编号")
    private String groupInstCode;

    @ApiModelProperty(notes = "拼团活动编号")
    private String groupCode;

    @ApiModelProperty(notes = "拼团过期时间")
    private Long expireTime;

    @ApiModelProperty(notes = "拼团人数")
    private Integer totalMembers;

    @ApiModelProperty(notes = "参与拼团人数")
    private Integer joinedMembers;

    @ApiModelProperty(notes = "还差拼团人数")
    private Integer differenceMembers;

    /*
     * 2：组团中 3： 已成团 4：组团失败
     */
    @ApiModelProperty(notes = "状态、2：组团中 3： 已成团 4：组团失败")
    private Integer status;

    @ApiModelProperty(notes = "团员集合")
    private List<GroupInstDetailResponse> groupInstDetailResponseList;

    @ApiModelProperty(notes = "商品信息")
    private GroupProductResponse groupProductResponse;

    @ApiModelProperty(notes = "订单信息")
    private Map<String,Object> orderInfo;

}
